package com.dailyblue.java.spring.rocketmq.mq02.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@RocketMQMessageListener(topic = "TopicA",selectorExpression = "TagA", consumerGroup = "zhuoyue02")
@Component
public class ConsumerDemoListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("消费者获取到了body:" + s);
    }
}
